#ifndef MYTHREAD_H
#define MYTHREAD_H
#include "SOCKET/mysocket.h"
#include<QThread>

class Mysocket;
class Mythread : public QThread
{
    Q_OBJECT
public:
    Mythread(qintptr p_sock,QObject *parent = Q_NULLPTR);
    ~Mythread();

private:
    void run();
    qintptr ptr;
signals:
    void dataReady(char *str);
private:
    Mysocket *m_socket;
    int m_sockDesc;
};

#endif // MYTHREAD_H
